const Koa = require('koa');
const app = new Koa();
const index = require('./router/index')
const bodyparser = require('koa-bodyparser');
const PORT = 3003;
app.use(bodyparser())
app.use(index.routes(), index.allowedMethods())

app.listen(PORT, () => {
  console.log(`http://localhost:${PORT}`)
})